/*
 * Ban.java
 *
 * Created on June 28, 2007, 2:10 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jhub.management;

import java.util.Date;

/**
 *
 * @author dbotelho
 */
public class Ban {
    
    public static Ban nickInstance(String nick,String reason,Date banDate,Date banTill){
        Ban nickBan = new Ban();
        nickBan.setNick(nick);
        nickBan.setReason(reason);
        nickBan.setBanDate(banDate);
        nickBan.setBanTill(banTill);
        return nickBan;
    }
    
    public static Ban emailInstance(String email,String reason,Date banDate,Date banTill){
        Ban nickBan = new Ban();
        nickBan.setEmail(email);
        nickBan.setReason(reason);
        nickBan.setBanDate(banDate);
        nickBan.setBanTill(banTill);
        return nickBan;
    }
    
    private String nick;
    private String email;
    private String share;
    private String ip;
    private String ip_to;
    private String reason;
    private Date banDate;
    private Date banTill;
    
    /** Creates a new instance of Ban */
    public Ban() {
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getShare() {
        return share;
    }

    public void setShare(String share) {
        this.share = share;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp_to() {
        return ip_to;
    }

    public void setIp_to(String ip_to) {
        this.ip_to = ip_to;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getBanDate() {
        return banDate;
    }

    public void setBanDate(Date banDate) {
        this.banDate = banDate;
    }

    public Date getBanTill() {
        return banTill;
    }

    public void setBanTill(Date banTill) {
        this.banTill = banTill;
    }
    
}
